package cn.iocoder.yudao.module.api.pay.refund.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 退款单创建 DTO
 *
 * @author 芋道源码
 */
@Data
public class UnifiedRefundCreateDTO extends PayRefundCreateDTO {

    @Schema(description = "统一退款单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "URF202406271105343545")
    @NotBlank(message = "统一退款单号不能为空")
    private String refundNo;

    @Schema(description = "实付金额，单位：分")
    @NotNull(message = "实付金额不能为空")
    @DecimalMin(value = "0", message = "实付金额必须大于等于零")
    private Integer payPrice;

}
